package com.springstudy;


import com.springstudy.config.SpringConfig;
import com.springstudy.service.AccountService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author Tamako
 * @since 2025/1/13 10:01
 */
public class AccountTest {
    public static void main(String[] args) {
//        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext2.xml");
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);
        AccountService accountService = context.getBean(AccountService.class);
        accountService.transferMoney("tom", "lucy", 500);
    }
}
